package com.example.springMVC.service;

import com.example.springMVC.commons.ServiceException;
import com.example.springMVC.pojo.User;
import com.github.pagehelper.PageInfo;

public interface UserService {
    User login(User user) throws Exception;
    PageInfo<User> userList(Integer currentPage,Integer roleId, String userName);

    boolean addUser(User user) throws ServiceException;


    boolean deleteUser(Long userId);

    boolean updateUserById(User user) throws ServiceException;

    User getUserById(long userId);

    User getUserByCode(String userCode);
}
